package 数据结构.泛型类;

public class OrderedPair<K,V> implements pair<K,V> {
    private K key;
    private V value;
    public OrderedPair(K key, V value) {
        this.key = key;
        this.value = value;
    }
    @Override
    public K getKey(){
        return key;
    }
    @Override
    public V getValue(){
        return value;
    }
}
